<template>
  <router-view />
</template>

<script lang="ts">
import { defineComponent } from 'vue'  
import { useRoute } from 'vue-router'
import { useUserStore } from '@/stores/modules/user.ts';
import { updateRouteTab } from '@/utils/route.ts';

const route = useRoute();

watch(() => route.path, () => {
  updateRouteTab(useUserStore, route);
})

export default defineComponent({
  name: 'App',
})
</script>

